@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./theme.scss"; // 变量文件
@import "./element-reset.scss"; // 覆盖element样式

/* el-popover 层级覆盖问题 */
.el-popover {
    // z-index: 98 !important;
}

html {
    font-size: 10px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: hidden;
}

body {
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}


/* 全局滚动条设置 */
::-webkit-scrollbar {
    height: 5px;
    width: 8px;
    // background-color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0);
    margin-right: .5px;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(25, 28, 34, .2);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(25, 28, 34, 0.4);
}


label {
    font-weight: 700;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

#printHtml {
    .container {
        margin: 0 0 5px;
        padding: 5px 25px 5px;
        background: #ECEEF2;
    }

    .container.nobg {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff;

        .form-item-block {
            margin: 0 !important;
        }
    }

    .component-tit {
        margin: 0px;
        line-height: 1.5em !important;
    }

    .form-item-block {
        font-size: 12px;
        margin-bottom: 0px;
    }

    .form-item-block-title {
        margin: 7px 0 5px;
        font-size: 13px;
        color: #000;
    }

    .form-item-block-input {
        .detail {
            margin: 2px 0 2px;
        }
    }

    .form-item-block-input-title {
        label {
            color: #000;
        }
    }
    /**
    改变边框颜色
    */
    .el-table--border, .el-table--group {
        border: 1px solid rgba(0, 0, 0, 1)!important;
    }
    /**
    改变表格内竖线颜色
    */
    .el-table--border  td, .el-table--border th, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
        border-right: 1px solid rgba(0, 0, 0, 1)!important;
    }
    /**
    改变表格内行线颜色
    */
    .el-table td, .el-table th.is-leaf  {
        color: #000;
        border-bottom: 1px solid rgba(0, 0, 0, 1)!important;

        &:nth-last-child(2) {
            border-right: unset;
        }
    }

    .el-table thead tr th{
        border-color: rgba(0, 0, 0, 1);
    }
    .el-table th, .el-table tr {
        border-bottom: 1px solid rgba(0, 0, 0, 1);
        border-right: 1px solid rgba(0, 0, 0, 1);
        &:last-child {
            border-right: unset;
            td {
                border-bottom: unset !important;
            }
        }
    }
    .el-table .el-table__header {
        border-bottom: unset !important;
    }
    .el-table {
        font-size: 12px !important;
        border: 1px solid rgba(0, 0, 0, 1);

        .cell {
            line-height: 28px;
        }

        td {
            padding: 0px;

            .cell {
                padding: 9px 5px;
                line-height: 14px;
            }
            border-right: 1px solid rgba(0, 0, 0, 1) !important;
            &:last-child {
                border-right: unset !important;
            }
        }

        .detail {
            margin: 0px 0 0px;
        }
    }

    .el-table th {
        color: #000 !important;
        font-weight: 600;
        font-size: 12px !important;
        line-height: 14px !important;
        padding: 2px 5px !important;
    }

    .el-table-wrapper {
        table {
            // table-layout: fixed;
            width: 100%;
        }
    }

    .el-table__header-wrapper {
        th {
            box-sizing: border-box;
            word-break: break-all;
            // width: auto;
        }
    }

    .mt-treat-table .print_cell {
        padding: 9px 5px;
    }

    .mt-treat-table .header {
        font-size: 12px;
        line-height: 14px;
    }

    .mt-treat-table {
        .table {
            box-sizing: border-box;
            border: 1px solid rgba(0, 0, 0, 1);

            th {
                color: #000 !important;
                font-weight: 600;
                padding: 8px 5px;
                line-height: 14px;
                border-right: 1px solid rgba(0, 0, 0, 1) !important;

                &:last-child {
                    border-right: unset !important;
                }
            }
            td {
                color: #000;
                border-right: 1px solid rgba(0, 0, 0, 1);
                border-top: 1px solid rgba(0, 0, 0, 1);
                &:last-child {
                    border-right: unset;
                }
            }
        }
        .header {
            color: #000;
            font-weight: 600;
        }
        .info {
            color: #000;
        }

        .empty {
            border-left: solid 1px rgba(0, 0, 0, 1);
            border-right: solid 1px rgba(0, 0, 0, 1);
            border-bottom: solid 1px rgba(0, 0, 0, 1);
        }
    }

    .mt-preset-table {
        .print_cell {
            padding: 9px 5px;
        }

        .header {
            font-size: 12px;
            line-height: 14px;
        }

        .el-table {
            border-right: solid 1px rgba(0, 0, 0, 1) !important;
            border: 1px solid rgba(0, 0, 0, 1) !important;
        }

        .table {
            box-sizing: border-box;
            border: 1px solid rgba(0, 0, 0, 1);

            th {
                color: #000 !important;
                font-weight: 600;
                padding: 8px 5px;
                line-height: 14px;
                height: auto !important;
                min-height: 20px;
                border-right: 1px solid rgba(0, 0, 0, 1) !important;

                &:last-child {
                    border-right: unset !important;
                }
            }
            td {
                color: #000;
                border-right: 1px solid rgba(0, 0, 0, 1);
                border-top: 1px solid rgba(0, 0, 0, 1);
                &:last-child {
                    border-right: unset;
                }
            }
        }
        .cell {
            line-height: 20px;
        }

        .label, .header, .cell, .info {
            color: #000;
        }
        .header {
            font-weight: 600;
        }

        .empty {
            border-left: solid 1px rgba(0, 0, 0, 1);
            border-right: solid 1px rgba(0, 0, 0, 1);
            border-bottom: solid 1px rgba(0, 0, 0, 1);
        }
    }

    .content-block {
        .form-item-block {
            line-height: 14px !important;

            .container {
                ::after {
                    display: none;
                }
            }
        }
    }

    .form-header {
        margin: 0 0px;
    }

    .list {
        margin: 0px;

        .list-header {
            margin: 5px 0 6px;
            padding-bottom: 0px;
        }

        &:first-child {
            .list-header {
                margin: 0 0 6px;
                padding-bottom: 0px;
            }
        }
    }

    .info-text {
        display: inline-block;
        margin: 3px 0 0px;
    }

    .form-header-name {
        margin: 10px 0 5px
    }

    .el-image__inner {
        // border: 1px solid red;
    }
}

#hisprintHtml {
    .container {
        margin: 0 0 5px;
        padding: 5px 25px 5px;
        background: #ECEEF2;
    }

    .container.nobg {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff;

        .form-item-block {
            margin: 0 !important;
        }
    }

    .component-tit {
        margin: 0px;
        line-height: 1.5em !important;
    }

    .form-item-block {
        font-size: 12px;
        margin-bottom: 0px;
    }

    .form-item-block-title {
        margin: 7px 0 5px;
        font-size: 13px;
        color: #000;
    }

    .form-item-block-input {
        .detail {
            margin: 2px 0 2px;
        }
    }

    .form-item-block-input-title {
        label {
            color: #000;
        }
    }
    /**
    改变边框颜色
    */
    .el-table--border, .el-table--group {
        border: 1px solid rgba(0, 0, 0, 1)!important;
    }
    /**
    改变表格内竖线颜色
    */
    .el-table--border  td, .el-table--border th, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
        border-right: 1px solid rgba(0, 0, 0, 1)!important;
    }
    /**
    改变表格内行线颜色
    */
    .el-table td, .el-table th.is-leaf  {
        color: #000;
        border-bottom: 1px solid rgba(0, 0, 0, 1)!important;

        &:nth-last-child(2) {
            border-right: unset;
        }
    }

    .el-table thead tr th{
        border-color: rgba(0, 0, 0, 1);
    }
    .el-table th, .el-table tr {
        border-bottom: 1px solid rgba(0, 0, 0, 1);
        border-right: 1px solid rgba(0, 0, 0, 1);
        &:last-child {
            border-right: unset;
            td {
                border-bottom: unset !important;
            }
        }
    }
    .el-table .el-table__header {
        border-bottom: unset !important;
    }
    .el-table {
        font-size: 12px !important;
        border: 1px solid rgba(0, 0, 0, 1);
        border-bottom: unset;
        border-right: unset;

        .cell {
            line-height: 28px;
        }

        th {
            border-right: 1px solid rgba(0, 0, 0, 1) !important;
        }

        td {
            padding: 0px;

            .cell {
                padding: 9px 5px;
                line-height: 14px;
            }
            border-right: 1px solid rgba(0, 0, 0, 1) !important;
            // &:last-child {
            //     border-right: unset !important;
            // }
        }

        .detail {
            margin: 0px 0 0px;
        }
    }

    .el-table th {
        color: #000 !important;
        font-weight: 600;
        font-size: 12px !important;
        line-height: 14px !important;
        padding: 2px 5px !important;
    }

    .el-table__header-wrapper {
        th {
            box-sizing: border-box;
            word-break: break-all;
            // width: auto;
        }
    }

    .mt-treat-table .print_cell {
        padding: 9px 5px;
    }

    .mt-treat-table .header {
        font-size: 12px;
        line-height: 14px;
    }

    .mt-treat-table {
        .table {
            box-sizing: border-box;
            border: 1px solid rgba(0, 0, 0, 1);

            th {
                color: #000 !important;
                font-weight: 600;
                padding: 8px 5px;
                line-height: 14px;
                border-right: 1px solid rgba(0, 0, 0, 1) !important;

                &:last-child {
                    border-right: unset !important;
                }
            }
            td {
                color: #000;
                border-right: 1px solid rgba(0, 0, 0, 1);
                border-top: 1px solid rgba(0, 0, 0, 1);
                &:last-child {
                    border-right: unset;
                }
            }
        }
        .header {
            color: #000;
            font-weight: 600;
        }
        .info {
            color: #000;
        }

        .empty {
            border-left: solid 1px rgba(0, 0, 0, 1);
            border-right: solid 1px rgba(0, 0, 0, 1);
            border-bottom: solid 1px rgba(0, 0, 0, 1);
        }
    }

    .mt-preset-table {
        .print_cell {
            padding: 9px 5px;
        }

        .header {
            font-size: 12px;
            line-height: 14px;
        }

        .el-table {
            border-right: solid 1px rgba(0, 0, 0, 1) !important;
            border: 1px solid rgba(0, 0, 0, 1) !important;
        }

        .table {
            width: 740px;
            box-sizing: border-box;
            border: 1px solid rgba(0, 0, 0, 1);

            th {
                color: #000 !important;
                font-weight: 600;
                padding: 8px 5px;
                line-height: 14px;
                height: auto !important;
                min-height: 20px;
                border-right: 1px solid rgba(0, 0, 0, 1) !important;

                &:last-child {
                    border-right: unset !important;
                }
            }
            td {
                color: #000;
                border-right: 1px solid rgba(0, 0, 0, 1);
                border-top: 1px solid rgba(0, 0, 0, 1);
                &:last-child {
                    border-right: unset;
                }
            }
        }

        .label, .header, .cell, .info {
            color: #000 !important;
        }
        .header {
            font-weight: 600;
        }
        .cell {
            line-height: 20px;
        }

        .empty {
            border-left: solid 1px rgba(0, 0, 0, 1);
            border-right: solid 1px rgba(0, 0, 0, 1);
            border-bottom: solid 1px rgba(0, 0, 0, 1);
        }
    }

    .content-block {
        .form-item-block {
            line-height: 14px !important;

            .container {
                ::after {
                    display: none;
                }
            }
        }
    }

    .form-header {
        margin: 0 0px;
    }

    .list {
        margin: 0px;

        .list-header {
            margin: 5px 0 6px;
            padding-bottom: 0px;
        }

        &:first-child {
            .list-header {
                margin: 0 0 6px;
                padding-bottom: 0px;
            }
        }
    }

    .info-text {
        display: inline-block;
        margin: 3px 0 0px;
    }

    .form-header-name {
        margin: 10px 0 5px
    }

    .el-image__inner {
        // border: 1px solid red;
    }
}

// 拖拽样式
.sortable-ghost {
    background: rgba($mt-blue, 0.2) !important;
    // border-top: 2px solid green !important;
}
.dragClass {
    // background: yellow !important;
    // border-top: 2px solid red !important;
    // opacity: 0 !important;
    // height: 1px !important;
    // width: 10px !important;
    // background: #000 !important;
    // background-image: linear-gradient(#333, #999) !important;
}
// 拖拽表格样式
.drag-table {
    .el-table {
        tbody tr {
            td {
                background: unset !important;
            }
        }
    }
}
